package org.itboys.store.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

import java.util.Date;

/**
 * Created by huml on 2016/4/19.
 * 收货地址
 */
@Entity(value = "StoreReceiveAddress", noClassnameStored = true)
public class ReceiveAddress extends BaseLongIdEntity {

    private static final long serialVersionUID = 765230704776008502L;

    public static final Integer DEFAULT_ADDRESS = 2;
    @Indexed
    private Long memberId;//用户Id
    private Long provinceId;//省id
    private Long cityId;//市id
    private Long districtId;//区县id
    private String provinceName;//省份名称
    private String cityName;//城市名称
    private String districtName;//区县名称
    private String name;//名称
    private String mobile;//手机
    private String email;
    private String identityNo;//身份证号码
    private String identityFrontImage;//身份证正面照
    private String identityOppImage;//身份证反面照
    private String telephone;//固话
    private String address;//地址
    private Integer isDeleted = 0;//0表示未删除，1表示已删除，2表示为默认地址
    private Date createTime;//创建时间
    private Date updateTime;//修改时间

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getIdentityNo() {
        return identityNo;
    }

    public void setIdentityNo(String identityNo) {
        this.identityNo = identityNo;
    }

    public String getIdentityFrontImage() {
        return identityFrontImage;
    }

    public void setIdentityFrontImage(String identityFrontImage) {
        this.identityFrontImage = identityFrontImage;
    }

    public String getIdentityOppImage() {
        return identityOppImage;
    }

    public void setIdentityOppImage(String identityOppImage) {
        this.identityOppImage = identityOppImage;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }
}
